<extend name="layout/application"/>
<block name="content">
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">概览</strong> /
                <small>Preview</small>
            </div>
        </div>
        <div class="am-g">
            <div class="am-u-sm-12">
                <table class="am-table ">
                    <foreach $cates as $cate>
                        <tr>
                            <td class="am-text-right"><span
                                    class="am-badge am-badge-secondary  am-radius am-text-xl ">
                                {{$cate.name}}
                            </span>
                            </td>
                            <foreach $cate.tags as $tag>
                                <td>
                            <span class="am-badge am-badge-success am-radius am-margin-xs ">{{$tag.name}}
                       </span>
                                </td>
                            </foreach>
                        </tr>
                    </foreach>

                </table>
            </div>
        </div>
    </div>

</block>